{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=65
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,n,k,ans:longint;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
ans:=0;
for i:=1 to n do begin
	read(k);
	if k>0 then inc(ans);
end;
write(ans);
end.
 